projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a99e75
)
menuitem: set the menubar style class for menu items on a bar
author
Cosimo Cecchi
<cosimoc@gnome.org>
Wed, 2 Mar 2011 23:41:24 +0000
(18:41 -0500)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Thu, 3 Mar 2011 22:48:26 +0000
(17:48 -0500)
So that themes can distinguish them from the other menu items.
gtk/gtkmenuitem.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmenuitem.c
b/gtk/gtkmenuitem.c
index 5692900e6d76f9d774ff3686063d3a1db5cd8f0a..72fbe4227bcff7ab5a0ff7adbff6ddf15104038c 100644
(file)
--- a/
gtk/gtkmenuitem.c
+++ b/
gtk/gtkmenuitem.c
@@
-1594,6
+1594,9
@@
gtk_menu_item_draw (GtkWidget *widget,
gtk_style_context_get_padding (context, state, &padding);
+ if (GTK_IS_MENU_BAR (parent))
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_MENUBAR);
+
if (child && (state & GTK_STATE_FLAG_PRELIGHT))
{
gtk_render_background (context, cr, x, y, w, h);